<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>   09  Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>

    <div id="app">


        <input type="number" v-model="num">
        <p>
            <input type="button" value="+" @click="add">
            <input type="button" value="-" @click="red">
        </p>
        <p>
            <button>+</button>
            <button>-</button>
        </p>
    </div>
    
</body>

<script>



    new Vue({
        el:"#app",
        data:{
            num:100,

        },
        methods:{
            add(){
                this.num++;
            },
            red(){
                this.num = this.num-1;
            }
        }
    })
</script>
</html>